package com.erp4j.dynamicfield.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erp4j.dynamicfield.entity.FieldDefinition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FieldDefinitionMapper extends BaseMapper<FieldDefinition> {
    /**
     * 根据模块ID查询字段定义，按排序号排序
     */
    List<FieldDefinition> selectByModuleId(@Param("moduleId") Long moduleId);

    /**
     * 根据模块ID查询扩展字段定义
     */
    List<FieldDefinition> selectExtFieldsByModuleId(@Param("moduleId") Long moduleId);
}
